import request from './request'

/**
 * 人员管理-获取人员列表
 * @param {Object} data
 */
export function staffMerchantList(data) {
  return request.get('reservation/merchant/list',data)
}

/**
 * 人员管理-审核状态
 * @param {Object} data 传参
 */
export function updateStaffMerchantExamine(staff_id,data) {
  return request.post('reservation/merchant/examine/' + staff_id,data)
}

/**
 * 人员管理-账号状态
 * @param {Object} data 传参
 */
export function updateStaffMerchantStatus(staff_id,status) {
  return request.post('reservation/merchant/status/' + staff_id,{status})
}

/**
 * 获取人员详情
 * @param {Object} id
 */
export function staffMerchantDetail(id) {
  return request.get('reservation/merchant/detail/' + id)
}

/**
 * 人员管理-解绑
 * @param {Object} id 传入id
 */
export function staffMerchantDelete(id) {
  return request.delete('reservation/merchant/del/' + id)
}


/**
 * 获取服务列表(装修)
 * @param id
 * @returns {*}
 */
export function serviceLstApi(id) {
  return request.get('reservation/service/service_list')
}

/**
 * 获取人员列表(装修)
 * @param id
 * @returns {*}
 */
export function staffLstApi(id) {
  return request.get('reservation/merchant/staff_list')
}

//malei start

/**
 * @description 订单 -- 列表
 */

export function orderListApi(data) {
  return request.get('store/order/lst_reservation', data)
}


/**
 * @description 订单 -- 表头
 */
export function chartApi() {
  return request.get('store/order/chart_reservation')
}

/**
 * @description 订单 -- 卡片
 */
export function cardListApi(data) {
  return request.get('store/order/title_reservation', data)
}

/**
 * @description 订单 -- 头部
 */
export function orderHeadListApi() {
  return request.get(`store/order/filtter_reservation`)
}

//malei end
